﻿@model DHQGHN.PM2.Models.EnumeratorModel

@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryval")

@Html.HiddenFor(m => m.ENUMERATOR_ID)
@Html.HiddenFor(m => m.ADM_CODE)
@Html.HiddenFor(m => m.ADM_UNIT_ID)
@Html.HiddenFor(m => m.GROUP_CODE_OLD)
    <div class="row" style="margin-top:5px;">
        <div class="col-md-3">
            @Html.LabelFor(m => m.FULL_NAME, new { @class = "text-center", style = "" })
            <font size="3" color="red" style="display:inline;" class="pm2-hidden">*</font>
        </div>
        <div class="col-md-9">
            @Html.TextBoxFor(m => m.FULL_NAME, new { @class = "form-control  ", @autofocus = "autofocus", style = "", @maxlength = 50 })
            <span style="color: red;">
                @Html.ValidationMessageFor(m => m.FULL_NAME)
            </span>
        </div>
    </div>

    <div class="row" style="margin-top:5px;">
        <div class="col-md-3">
            @Html.LabelFor(m => m.USERNAME, new { @class = "text-center", style = "" }) 
            <font size="3" color="red" style="display:inline;" class="pm2-hidden edit-hidden">*</font>

        </div>
        <div class="col-md-9">
            @if (ViewBag.UpdateMode == DHQGHN.PM2.Controllers.EnumeratorController.AddMode)
            {
                @Html.TextBoxFor(m => m.USERNAME, new { @class = "form-control  ", style = "" })

                <span style="color: red;">
                    @Html.ValidationMessageFor(m => m.USERNAME)
                </span>
            }
            else
            {
                @Html.TextBox("USERNAM", Model.USERNAME, new { @class = "form-control  ", style = "", @readOnly = true })
                @Html.HiddenFor(m => m.USERNAME)
            }

        </div>
    </div>
    <div class="row" style="margin-top:5px;">
        <div class="col-md-3">
            @Html.LabelFor(m => m.GROUPCODE, new { @class = "text-center", style = "" })
            <font size="3" color="red" style="display: inline;" class="pm2-hidden">*</font>
            @*visibility: hidden;*@
        </div>

        <div class="col-md-9">
            @Html.DropDownListFor(m => m.GROUPCODE, ViewBag.Groups as List<SelectListItem>, new { @class = "form-control  ", style = "" })
            <span style="color: red;">
                @Html.ValidationMessageFor(m => m.GROUPCODE)
            </span>
        </div>
    </div>

    <div class="row" style="margin-top:5px;">
        <div class="col-md-3">
            @Html.LabelFor(m => m.EMAIL, new { @class = "text-center", style = "" })
            <font size="3" color="red" style="display: inline;" class="pm2-hidden">*</font>
            @*visibility: hidden;*@
        </div>

        <div class="col-md-9">
            @Html.TextBoxFor(m => m.EMAIL, new { @class = "form-control", @rows = 3, style = "" })
            <span style="color: red;">
                @Html.ValidationMessageFor(m => m.EMAIL)
            </span>
        </div>
    </div>   

    <div class="row" style="margin-top:5px;">
        <div class="col-md-3">
            <h5>@Html.LabelFor(mode => mode.DESCRIPTIONS, new { @class = "text-center", style = "" })</h5>
             <font size="3" style="display: inline; vertical-align: top; visibility:hidden;">*</font>
        </div>
        <div class="col-md-9">
            @Html.TextAreaFor(m => m.DESCRIPTIONS, new { @class = "form-control", @rows = 3, style = "" })
        </div>

    </div>
